chore: fix show addresses

This commit is contained in:
2026-02-25 11:11:55 +01:00
parent 1376ce3583
commit 0fb4bd8a89
2 changed files with 22 additions and 6 deletions
+4 -1
View File
@@ -507,7 +507,10 @@ export const getAllAddresses = async (): Promise<
{ invalid_address: string; correct_address: string }[]
> => {
const { data } = await apiClient.get(`${V2}/admin/protected/addresses`);
return data.addresses ?? [];
return (data.addresses ?? []).map((a: any) => ({
invalid_address: a.invalid_address ?? a.InvalidAddress ?? "",
correct_address: a.correct_address ?? a.CorrectAddress ?? "",
}));
};
// ============================================
@@ -134,18 +134,31 @@ export default function AddressScreen() {
},
invalid: {
color: colors.danger,
fontSize: fontSize.sm,
fontSize: fontSize.md,
fontWeight: "600",
},
correct: {
color: colors.success,
fontSize: fontSize.sm,
marginTop: 4,
fontSize: fontSize.md,
fontWeight: "600",
marginTop: 6,
},
label: {
fontSize: fontSize.xs,
fontWeight: "700",
letterSpacing: 0.5,
marginBottom: 2,
},
labelInvalid: {
color: colors.danger,
},
labelCorrect: {
color: colors.success,
},
arrow: {
color: colors.textMuted,
fontSize: fontSize.xs,
marginVertical: 2,
fontSize: fontSize.lg,
marginVertical: 4,
},
row: {
flexDirection: "row",