diff --git a/src/utils/zap-split.ts b/src/utils/zap-split.ts index 38eecba4..33cd9c4e 100644 --- a/src/utils/zap-split.ts +++ b/src/utils/zap-split.ts @@ -4,10 +4,10 @@ import { isNumberFrom1To100 } from '@/utils.ts'; type Pubkey = string; type ExtraMessage = string; /** Number from 1 to 100, stringified. */ -type splitPercentages = string; +type splitPercentages = number; export type DittoZapSplits = { - [key: Pubkey]: [splitPercentages, ExtraMessage]; + [key: Pubkey]: { amount: splitPercentages; message: ExtraMessage }; }; /** Gets zap splits from NIP-78 in DittoZapSplits format. */ @@ -27,7 +27,7 @@ export async function getZapSplits(store: NStore, pubkey: string): Promise