Skip to content

Commit

Permalink
fix(code) comply coding conventions
Browse files Browse the repository at this point in the history
Signed-off-by: David Edler <david.edler@canonical.com>
  • Loading branch information
edlerd committed Feb 20, 2024
1 parent d4abd51 commit 625aa55
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/Xterm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export default forwardRef<Terminal, Props>(function Xterm(
if (onCursorMove) xtermRef.current.onCursorMove(onCursorMove);
if (onData) xtermRef.current.onData(onData);
if (onKey) xtermRef.current.onKey(onKey);
if (onLineFeed) xtermRef.current.onLineFeed;
if (onLineFeed) xtermRef.current.onLineFeed(onLineFeed);
if (onScroll) xtermRef.current.onScroll(onScroll);
if (onSelectionChange)
xtermRef.current.onSelectionChange(onSelectionChange);
Expand Down
2 changes: 1 addition & 1 deletion src/components/forms/NetworkDevicesForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const NetworkDevicesForm: FC<Props> = ({ formik, project }) => {
queryFn: () => fetchNetworks(project),
});

if (profileError) {
if (networkError) {
notify.failure("Loading networks failed", networkError);
}

Expand Down
2 changes: 1 addition & 1 deletion src/context/toastNotificationProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ const ToastNotificationProvider: FC<PropsWithChildren> = ({ children }) => {
};

const latestNotification = notifications[notifications.length - 1];
const hasNotifications = !!notifications?.length;
const hasNotifications = !!notifications.length;
const showNotification = hasNotifications && !showList && notificationTimer;
const showNotificationList = hasNotifications && showList;
return (
Expand Down
2 changes: 1 addition & 1 deletion src/pages/images/CustomIsoSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const CustomIsoSelector: FC<Props> = ({
<Button
appearance={
primaryImage?.name === image.aliases &&
primaryImage.pool === image.pool
primaryImage?.pool === image.pool
? "positive"
: ""
}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/storage/CustomVolumeSelectModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ const CustomVolumeSelectModal: FC<Props> = ({
dense
appearance={
primaryVolume?.name === volume.name &&
primaryVolume.type === volume.type &&
primaryVolume.pool == volume.pool
primaryVolume?.type === volume.type &&
primaryVolume?.pool == volume.pool
? "positive"
: ""
}
Expand Down

0 comments on commit 625aa55

Please sign in to comment.