Skip to content

Commit

Permalink
fix: vpa check
Browse files Browse the repository at this point in the history
  • Loading branch information
williamluke4 committed Nov 29, 2023
1 parent 7e71ef4 commit 3dcd09b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/users/forms/profile-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ export const ProfileForm = (props: ProfileFormProps) => {
const result = await utils.client.user.getAddressBySearchTerm.query({
searchTerm: data.vpa,
});
if (result?.blockchain_address) {
// TODO Fix this check
if (result?.blockchain_address && data.vpa !== props.initialValues.vpa) {
form.setError("vpa", {
type: "manual",
message: "VPA already exists",
Expand Down

0 comments on commit 3dcd09b

Please sign in to comment.