Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix commented issue

Krzysztof Białogłowicz3ce0db296363
diff --git a/saleor/static/js/components/utils.js b/saleor/static/js/components/utils.js
index 15a6274f17..6b0a2d5f58 100644
--- a/saleor/static/js/components/utils.js
+++ b/saleor/static/js/components/utils.js
@@ -4,17 +4,9 @@ export const mdBreakpoint = 992;
export const lgBreakpoint = 1200;
export const isMobile = () => {
- if(window.innerWidth < smBreakpoint) {
- return true;
- } else {
- return false;
- }
+ return window.innerWidth < smBreakpoint;
}
export const isTablet = () => {
- if(window.innerWidth >= smBreakpoint && window.innerWidth <= mdBreakpoint) {
- return true;
- } else {
- return false;
- }
+ return window.innerWidth >= smBreakpoint && window.innerWidth <= mdBreakpoint;
}
\ No newline at end of file