Skip to content

Commit

Permalink
fix: fw-555 wallet address is required to claim redpacket (#11614)
Browse files Browse the repository at this point in the history
  • Loading branch information
swkatmask committed May 13, 2024
1 parent e09739b commit ce7b7fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function useClaimStrategyStatus(payload: RedPacketJSONPayload | RedPacket
enabled: !signedMessage && !!platform,
queryKey: ['red-packet', 'claim-strategy', rpid, platform, account, me],
queryFn: async () => {
if (!platform) return null
if (!platform || !account) return null
return FireflyRedPacket.checkClaimStrategyStatus({
rpid,
profile: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function useSignedMessage(
} catch {}
if (version <= 3) return password
if (password) return signMessage(account, password).signature
if (!profile) return ''
if (!profile || !account) return ''
return FireflyRedPacket.createClaimSignature({
rpid,
profile,
Expand Down

0 comments on commit ce7b7fe

Please sign in to comment.