website refactor
This commit is contained in:
@@ -77,7 +77,11 @@ export function useCreateLeagueWizard() {
|
||||
// Use the league service to create the league
|
||||
const result = await leagueService.createLeague(input);
|
||||
|
||||
return result;
|
||||
if (result.isErr()) {
|
||||
throw new Error(result.getError().message);
|
||||
}
|
||||
|
||||
return result.unwrap();
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user