auto format
This commit is contained in:
parent
f45e5615cc
commit
dee9ccf7b1
@ -226,8 +226,8 @@ export class TranslatePlural extends React.Component<
|
|||||||
typeof childArray[i] === "string" &&
|
typeof childArray[i] === "string" &&
|
||||||
typeof childArray[i + 1] === "string"
|
typeof childArray[i + 1] === "string"
|
||||||
) {
|
) {
|
||||||
childArray[i + i] = ((childArray[i] as string) +
|
childArray[i + i] =
|
||||||
childArray[i + 1]) as string;
|
((childArray[i] as string) + childArray[i + 1]) as string;
|
||||||
childArray.splice(i, 1);
|
childArray.splice(i, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -267,8 +267,8 @@ export class TranslateSingular extends React.Component<
|
|||||||
typeof childArray[i] === "string" &&
|
typeof childArray[i] === "string" &&
|
||||||
typeof childArray[i + 1] === "string"
|
typeof childArray[i + 1] === "string"
|
||||||
) {
|
) {
|
||||||
childArray[i + i] = ((childArray[i] as string) +
|
childArray[i + i] =
|
||||||
childArray[i + 1]) as string;
|
((childArray[i] as string) + childArray[i + 1]) as string;
|
||||||
childArray.splice(i, 1);
|
childArray.splice(i, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -57,12 +57,14 @@ async function handleMessage(
|
|||||||
function assertNotFound(t: never): never {
|
function assertNotFound(t: never): never {
|
||||||
console.error(`Request type ${t as string} unknown`);
|
console.error(`Request type ${t as string} unknown`);
|
||||||
console.error(`Request detail was ${detail}`);
|
console.error(`Request detail was ${detail}`);
|
||||||
return {
|
return (
|
||||||
error: {
|
{
|
||||||
message: `request type ${t as string} unknown`,
|
error: {
|
||||||
requestType: type,
|
message: `request type ${t as string} unknown`,
|
||||||
},
|
requestType: type,
|
||||||
} as never;
|
},
|
||||||
|
} as never
|
||||||
|
);
|
||||||
}
|
}
|
||||||
function needsWallet(): Wallet {
|
function needsWallet(): Wallet {
|
||||||
if (!currentWallet) {
|
if (!currentWallet) {
|
||||||
|
Loading…
Reference in New Issue
Block a user