Skip to content

Commit

Permalink
fix: spread prev value too
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-stumpf committed Jul 23, 2024
1 parent 6a14b6b commit 6fa509e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const OnboardingDriver = () => {
const OnboardingCard = chains[chainIndex]

const dispatchChainAction: DispatchChainAction = (action, data) => {
if (data) setChainData((prev) => ({ prev, ...data }))
setChainData((prev) => ({ ...prev, ...data }))
if (action === "next" && chains.length > chainIndex + 1) {
setChainIndex((prev) => prev + 1)
return
Expand Down

0 comments on commit 6fa509e

Please sign in to comment.