Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: TTA-115 fix linters errors
  • Loading branch information
Abigail Cabascango committed Oct 6, 2022
commit 1d40b7d7e1948ea6dec8bfaff7d53fb8728bff57
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ export class ConnectionDirective implements OnInit {
let networkSatus;
if (!(/\fast-5g|3g|4g/.test(effectiveType)) || !(/\slow-2g|2g/.test(effectiveType))){
networkSatus = this.offlineSrc;
return
}

if (/\fast-5g|3g|4g/.test(effectiveType)) {
networkSatus = this.fastSrc;
}

if (/\slow-2g|2g/.test(effectiveType)) {
networkSatus = this.slowSrc;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class InternetConnectionStatusComponent implements OnInit {
.subscribe((effectiveType: string) => {

this.connectionType = effectiveType;

if (!(/\fast-5g|3g|4g/.test(effectiveType)) || !(/\slow-2g|2g/.test(effectiveType))){
this.toastrService.error('Your request was not completed, you are offline');
this.isFast = false;
Expand Down