Skip to content

Commit

Permalink
fix: chain id on red packet payload (#10495)
Browse files Browse the repository at this point in the history
  • Loading branch information
UncleBill committed Aug 19, 2023
1 parent 1329b9e commit c346a2d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ export function RedPacket(props: RedPacketProps) {
payloadChainId,
)

const network = useNetwork(pluginID, payload.chainId)
// TODO payload.chainId is undefined on production mode
const network = useNetwork(pluginID, payload.chainId || payload.token?.chainId)
const shareText = useMemo(() => {
const isOnTwitter = isTwitter()
const isOnFacebook = isFacebook()
Expand Down

0 comments on commit c346a2d

Please sign in to comment.