rule book ui

This commit is contained in:
Sirttas
2026-05-24 14:28:12 +02:00
parent 4b39d491d2
commit e10d58d231
6 changed files with 201 additions and 73 deletions
+4 -1
View File
@@ -13,4 +13,7 @@ export type RuleBook = RuleBookResponse & { ruleSets: { [key: ActivityType]: Rul
export const findByCharacterId = (characterId: number): Promise<RuleBook> => ruleBookControllerApi.findByCharacterId(characterId)
.then(response => response.data)
.catch(() => ({characterId, ruleSets: {}}));
.catch(() => ({characterId, ruleSets: {}}));
export const setCharacterRuleBook = (characterId: number, ruleBook: RuleBook): Promise<RuleBook> => ruleBookControllerApi.setCharacterRuleBook(characterId, ruleBook)
.then(response => response.data);