website refactor

This commit is contained in:
2026-01-14 10:51:05 +01:00
parent 4522d41aef
commit 0d89ad027e
291 changed files with 6887 additions and 3685 deletions

View File

@@ -8,7 +8,13 @@ export function useSponsorBilling(sponsorId: string) {
const queryResult = useQuery({
queryKey: ['sponsorBilling', sponsorId],
queryFn: () => sponsorService.getBilling(sponsorId),
queryFn: async () => {
const result = await sponsorService.getBilling(sponsorId);
if (result.isErr()) {
throw result.getError();
}
return result.unwrap();
},
enabled: !!sponsorId,
});