Skip to content

Commit

Permalink
Check size for sneding customizations
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDvP committed Jan 18, 2023
1 parent a38f497 commit a21352a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions interface/src/project/SettingsCustomization.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,9 @@ const SettingsCustomization: FC = () => {
(new_de.ma ? '<' + new_de.ma : '')
);

// check size in bytes to match buffer in CPP, which is 4096
// check size in bytes to match buffer in CPP, which is 2048
const bytes = new TextEncoder().encode(JSON.stringify(masked_entities)).length;
if (bytes > 4000) {
if (bytes > 2000) {
enqueueSnackbar(LL.CUSTOMIZATIONS_FULL(), { variant: 'warning' });
return;
}
Expand Down

0 comments on commit a21352a

Please sign in to comment.