Skip to content

Commit

Permalink
fix: improve error message when checksum address is expected
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Dec 1, 2024
1 parent 93da516 commit 078da01
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/SpaceSplitDelegationRow.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script setup lang="ts">
import { validateForm } from '@/helpers/validation';
import { clone } from '@snapshot-labs/snapshot.js/src/utils';
import { prop } from 'lodash/fp';

Check warning on line 4 in src/components/SpaceSplitDelegationRow.vue

View workflow job for this annotation

GitHub Actions / build (16.x)

'prop' is defined but never used
type DelegateRowForm = {
to: string;
Expand All @@ -24,7 +25,12 @@ const definition = {
}
},
required: ['to', 'weight'],
additionalProperties: false
additionalProperties: false,
errorMessage: {
properties: {
to: 'Must be a valid checksum address'
}
}
};
const props = defineProps<{
Expand Down

0 comments on commit 078da01

Please sign in to comment.