Commit ed116f04 authored by Wietse Kuipers's avatar Wietse Kuipers
Browse files

Check for year instead of day

parent 2df0d10b
...@@ -91,7 +91,7 @@ const getAchievements = (profile, t) => { ...@@ -91,7 +91,7 @@ const getAchievements = (profile, t) => {
<Text style={styles.description}>{achievement.name}</Text> <Text style={styles.description}>{achievement.name}</Text>
{achievement.periods && achievement.periods.map((period) => { {achievement.periods && achievement.periods.map((period) => {
let start = Moment(period.since); let start = Moment(period.since);
start = start.isSame(Moment([1970, 1, 1]), 'day') ? '?' : start.format('D MMMM YYYY'); start = start.isSame(Moment([1970, 1, 1]), 'year') ? '?' : start.format('D MMMM YYYY');
const end = period.until ? Moment(period.until).format('D MMMM YYYY') : t('today'); const end = period.until ? Moment(period.until).format('D MMMM YYYY') : t('today');
let text = ''; let text = '';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment