fix: oprava buildu
CI / Generate TypeScript types (push) Successful in 11s
CI / Generate TypeScript types (pull_request) Successful in 23s
CI / Server unit tests (push) Successful in 21s
CI / Build client (push) Successful in 34s
CI / Server unit tests (pull_request) Successful in 21s
CI / Build server (push) Successful in 1m4s
CI / Build server (pull_request) Successful in 25s
CI / Build client (pull_request) Successful in 1m40s
CI / Playwright E2E tests (push) Successful in 1m19s
CI / Build and push Docker image (push) Has been skipped
CI / Notify (push) Successful in 10s
CI / Playwright E2E tests (pull_request) Successful in 1m18s
CI / Build and push Docker image (pull_request) Has been skipped
CI / Notify (pull_request) Has been skipped
CI / Generate TypeScript types (push) Successful in 11s
CI / Generate TypeScript types (pull_request) Successful in 23s
CI / Server unit tests (push) Successful in 21s
CI / Build client (push) Successful in 34s
CI / Server unit tests (pull_request) Successful in 21s
CI / Build server (push) Successful in 1m4s
CI / Build server (pull_request) Successful in 25s
CI / Build client (pull_request) Successful in 1m40s
CI / Playwright E2E tests (push) Successful in 1m19s
CI / Build and push Docker image (push) Has been skipped
CI / Notify (push) Successful in 10s
CI / Playwright E2E tests (pull_request) Successful in 1m18s
CI / Build and push Docker image (pull_request) Has been skipped
CI / Notify (pull_request) Has been skipped
This commit is contained in:
+148049
File diff suppressed because one or more lines are too long
@@ -0,0 +1,5 @@
|
|||||||
|
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||||
|
# yarn lockfile v1
|
||||||
|
|
||||||
|
|
||||||
|
yarn-path ".yarn/releases/yarn-1.22.22.cjs"
|
||||||
@@ -56,18 +56,16 @@ export default function EditGroupFeesModal({ isOpen, onClose, group, onSaved }:
|
|||||||
setError(null);
|
setError(null);
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
try {
|
try {
|
||||||
const body: Record<string, any> = { id: group.id };
|
const res = await updateGroupFees({
|
||||||
body.fees = feesNum;
|
body: {
|
||||||
body.shipping = shippingNum;
|
id: group.id,
|
||||||
body.tip = tipNum;
|
fees: feesNum,
|
||||||
if (discountNum > 0) {
|
shipping: shippingNum,
|
||||||
body.discountType = discountType;
|
tip: tipNum,
|
||||||
body.discountValue = discountNum;
|
discountType: discountNum > 0 ? discountType : undefined,
|
||||||
} else {
|
discountValue: discountNum > 0 ? discountNum : undefined,
|
||||||
body.discountType = '';
|
},
|
||||||
body.discountValue = 0;
|
});
|
||||||
}
|
|
||||||
const res = await updateGroupFees({ body });
|
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
setError((res.error as any).error || 'Nastala chyba');
|
setError((res.error as any).error || 'Nastala chyba');
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -32,5 +32,6 @@ export const getWebsocket = () => io;
|
|||||||
|
|
||||||
/** Pošle event konkrétnímu přihlášenému uživateli (pokud je připojen). */
|
/** Pošle event konkrétnímu přihlášenému uživateli (pokud je připojen). */
|
||||||
export const emitToUser = (login: string, event: string, data: unknown) => {
|
export const emitToUser = (login: string, event: string, data: unknown) => {
|
||||||
|
if (!io) return;
|
||||||
io.to(`user:${login}`).emit(event, data);
|
io.to(`user:${login}`).emit(event, data);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user