Skip to content

Commit 0020ced

Browse files
committed
fix: address comments
1 parent 610aacf commit 0020ced

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/react/src/gho.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function useSavingsGhoBalance(
4444
* Fetches the current sGHO balance for a user.
4545
*
4646
* ```tsx
47-
* const { data, loading } = useSavingsGhoBalance({
47+
* const { data, error, loading } = useSavingsGhoBalance({
4848
* user: evmAddress('0x742d35cc…'),
4949
* });
5050
* ```
@@ -124,6 +124,11 @@ export function useSavingsGhoWithdraw(): UseAsyncTask<
124124
* case 'ApprovalRequired':
125125
* return sendTransaction(plan.approval)
126126
* .andThen(() => sendTransaction(plan.originalTransaction));
127+
*
128+
* case 'InsufficientBalanceError':
129+
* return errAsync(
130+
* new Error(`Insufficient balance: ${plan.required.value} required.`)
131+
* );
127132
* }
128133
* });
129134
*

0 commit comments

Comments
 (0)