We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b48a632 commit bb6f11eCopy full SHA for bb6f11e
1 file changed
frontend/pwa/src/app/forex/page.tsx
@@ -264,9 +264,9 @@ export default function ForexTradingPage() {
264
api.forex.regulatory(),
265
]);
266
267
- const extract = (res: PromiseSettledResult<Record<string, unknown>>, key: string) => {
+ const extract = (res: PromiseSettledResult<unknown>, key: string) => {
268
if (res.status !== "fulfilled") return null;
269
- const d = res.value;
+ const d = res.value as Record<string, unknown> | null;
270
const inner = d && typeof d === "object" && "data" in d ? d.data as Record<string, unknown> : d;
271
return inner && typeof inner === "object" && key in inner ? (inner as Record<string, unknown>)[key] : null;
272
};
0 commit comments