Skip to content

Commit

Permalink
fix: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed Jul 5, 2024
1 parent 5831fee commit a519988
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,16 @@ export const DeleteTenantDialog = ({
onCloseDialog={onCloseDialog}>
<DialogContent>
<p className="confirm-text">
Are you sure you want to delete the tenant: <span className="tenant-id">{tenantId}</span>? All the
users associated with the tenant will be moved to the public tenant. Please enter the tenantId below
to confirm.
Are you sure you want to delete the tenant: <span className="tenant-id">{tenantId}</span> ?
<br />
Users associated with the tenant will be moved to the public tenant.
<br />
<br />
Please enter the <span className="tenant-id">{tenantId}</span> below to confirm.
</p>
<InputField
label="Tenant ID"
value={currentTenantId}
placeholder={tenantId}
type="text"
name="tenantId"
handleChange={(e) => setCurrentTenantId(e.target.value)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ export const EditCoreConfigPropertyDialog = ({
const handleSaveProperty = async () => {
try {
setIsLoading(true);
const res = await updateCoreConfig(tenantInfo.tenantId, name, currentValue);
const parsedValue =
type === "number" && typeof currentValue === "string" ? parseInt(currentValue) : currentValue;
const res = await updateCoreConfig(tenantInfo.tenantId, name, parsedValue);
if (res.status !== "OK") {
if (res.status === "UNKNOWN_TENANT_ERROR") {
showToast({
Expand Down Expand Up @@ -94,7 +96,7 @@ export const EditCoreConfigPropertyDialog = ({

return (
<Dialog
title="Edit Property?"
title="Edit Property"
onCloseDialog={onCloseDialog}>
<DialogContent>
<div>
Expand Down

0 comments on commit a519988

Please sign in to comment.