Skip to content

Commit

Permalink
use deconstructed value
Browse files Browse the repository at this point in the history
  • Loading branch information
Da-Colon committed Sep 13, 2024
1 parent 2bcfcef commit d3e264d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/schemas/roles/useRolesSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const useRolesSchema = () => {
const currentPaymentIndex = currentRoleHat.roleEditingPaymentIndex;
// get all current role's payments excluding this one.
const allCurrentRolePayments: SablierPaymentFormValues[] = (
cxt.from[2].value.payments ?? []
currentRoleHat.payments ?? []
).filter(
(_payment: SablierPaymentFormValues, index: number) =>
index !== currentPaymentIndex && !_payment.streamId,
Expand Down

0 comments on commit d3e264d

Please sign in to comment.