These are chat archives for FreeCodeCamp/HelpFrontEnd

3rd
Sep 2018
Helio Goncalves
@srlhyo
Sep 03 2018 11:01 UTC
@srlhyo
what is the best way to get wsl command line to show only the bash prompts as opposed to the filesystem path?
cause the deeper the filesystem gets the less space there is to write commands.
it's quite annoying since we can tell where we are with pwd, right?
Stephen James
@sjames1958gm
Sep 03 2018 12:03 UTC
@srlhyo The environment variable PS1 contains the prompt pattern.
PS1=\h:\W \u\$
This is mine which is \h hostname : \W which is the current dir (only the last value of pwd) and \u user
aenkirch
@aenkirch
Sep 03 2018 18:40 UTC
Guys ! I'm currently working on the Pomodoro Clock project in React and I have some issues in the switch() I'm trying to use to switch between the "working" and "pausing"state, can someone help me ? (it's line 23) thanks in advance ! https://codepen.io/aenkirch/pen/EeNarR/
Stephen James
@sjames1958gm
Sep 03 2018 19:56 UTC
@aenkirch You don't have a break; between your cases
aenkirch
@aenkirch
Sep 03 2018 20:00 UTC
@sjames1958gm Where should I put the "break;" cause if you think it's at the end of each case, it does not work better ahah
Stephen James
@sjames1958gm
Sep 03 2018 20:03 UTC
@aenkirch Well you should have one before the second case, or your first case will just flow into the second one.
Rob
@PGFracing
Sep 03 2018 20:04 UTC
Why isn’t the 1&1 Ad centered www.pgfracing.com ?
aenkirch
@aenkirch
Sep 03 2018 20:12 UTC
@sjames1958gm Could you fork it and show me where should it be put because I can't manage to get it working man
aenkirch
@aenkirch
Sep 03 2018 22:00 UTC
https://codepen.io/aenkirch/pen/EeNarR ok managed to debug guys and the transition between 'Session' and 'Break' state is now OK for all values but 0:00, when the counter reach 0:00, it suddenly goes to -2:00