done with that
This commit is contained in:
186932
dealers.json
Normal file
186932
dealers.json
Normal file
File diff suppressed because it is too large
Load Diff
14582
distributors.json
Normal file
14582
distributors.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -53,6 +53,7 @@ export const apiAuthRouter = createTRPCRouter({
|
||||
const { captchaId, captchaAnswer } = input;
|
||||
let { userId, userType, password } =
|
||||
await dbApiUser.getRandomDistributor();
|
||||
|
||||
if (input.userId) {
|
||||
let _user = await dbApiUser.getUserById(input.userId);
|
||||
console.log("[=] User :: ", _user?.userId);
|
||||
|
||||
@@ -62,6 +62,11 @@
|
||||
toast.success("Data posted successfully");
|
||||
},
|
||||
onError: (e) => {
|
||||
// @ts-ignore
|
||||
if (e.detail) {
|
||||
// @ts-ignore
|
||||
return toast.error(e.detail);
|
||||
}
|
||||
console.error(e);
|
||||
toast.error("Error posting data");
|
||||
},
|
||||
@@ -543,8 +548,7 @@
|
||||
<div class="w-full max-w-xs">
|
||||
<Input
|
||||
value={copyCounts
|
||||
? (copyCounts[lc ?? "message"] ??
|
||||
"")
|
||||
? copyCounts[lc ?? "message"] ?? ""
|
||||
: ""}
|
||||
label={"Copy count"}
|
||||
placeholder={`For ${lc ?? ""} message`}
|
||||
|
||||
Reference in New Issue
Block a user