Use booked seconds instead of hours

This commit is contained in:
manubo
2019-09-24 16:54:44 +02:00
parent b9e0639cf0
commit 9dcd42072e
4 changed files with 15 additions and 11 deletions

View File

@@ -10,7 +10,7 @@ import {
import { get, forEach, reject, isNil } from "lodash/fp"
import { createMatcher } from "utils/urlMatcher"
import remoteServices from "remoteServices"
import { queryTabs, isBrowserTab, getSettings } from "utils/browser"
import { queryTabs, isBrowserTab, getSettings, setStorage } from "utils/browser"
const matcher = createMatcher(remoteServices)
@@ -30,7 +30,7 @@ export function tabUpdated(tab, { messenger, settings }) {
messenger.postMessage(tab, {
type: "showBubble",
payload: {
bookedHours: parseFloat(data.hours),
bookedSeconds: data.seconds,
timedActivity: data.timed_activity,
service,
},
@@ -40,7 +40,7 @@ export function tabUpdated(tab, { messenger, settings }) {
messenger.postMessage(tab, {
type: "showBubble",
payload: {
bookedHours: 0,
bookedSeconds: 0,
service,
},
})