Skip to content

Commit

Permalink
fix: is unchanged for single shard edit (#3078)
Browse files Browse the repository at this point in the history
  • Loading branch information
Asmadek authored Jan 31, 2025
1 parent 37e9096 commit 19bf20d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ sample({
fn: (network, { activeDelegations, shards }) => {
const address = toAddress(shards[0].accountId, { prefix: network!.chain.addressPrefix });

return { conviction: activeDelegations[address].conviction, isUnchanged: shards.length > 0 };
return { conviction: activeDelegations[address].conviction, isUnchanged: shards.length > 1 };
},
target: spread({
conviction: $delegateForm.fields.conviction.onChange,
Expand Down

0 comments on commit 19bf20d

Please sign in to comment.