website refactor
This commit is contained in:
@@ -11,7 +11,7 @@ export function useSponsorBilling(sponsorId: string) {
|
||||
queryFn: async () => {
|
||||
const result = await sponsorService.getBilling(sponsorId);
|
||||
if (result.isErr()) {
|
||||
throw result.getError();
|
||||
throw new Error(result.getError().message);
|
||||
}
|
||||
return result.unwrap();
|
||||
},
|
||||
@@ -19,4 +19,4 @@ export function useSponsorBilling(sponsorId: string) {
|
||||
});
|
||||
|
||||
return enhanceQueryResult(queryResult);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user