Skip to content

Commit b82a758

Browse files
fix(ui): fix custom bang addition
1 parent 97a281b commit b82a758

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/components/data-grid.tsx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -260,19 +260,7 @@ export function BangsDataGrid(): JSX.Element {
260260
await bangConfig.customBangs.pushBang(
261261
currentBang,
262262
);
263-
if (
264-
result &&
265-
currentBangShortcut
266-
) {
267-
await bangConfig.customBangs.removeBang(
268-
currentBangShortcut,
269-
);
270-
}
271-
272-
if (
273-
result ||
274-
!currentBangShortcut
275-
) {
263+
if (result) {
276264
setIsModalOpen(false);
277265
}
278266

0 commit comments

Comments
 (0)