Commit 57cf6c46 authored by Benjamin Bouvier's avatar Benjamin Bouvier
Browse files

Remove easter egg;

parent 1707e7b9
......@@ -310,25 +310,6 @@ function operationFromPOD(unknownOperationTypeId) {
return op => new Operation(op, unknownOperationTypeId);
}
function normalizeData(acc) {
var d = new Date();
if (d.getDate() === 1 && d.getMonth() === 3 && Math.random() > 0.42) {
for (let i = 0; i < 5 && i < acc.operations.length; i++) {
let op = acc.operations[i];
setTimeout(() => {
if (op.amount < 0) {
op.amount = -op.amount;
op.customLabel = `Erreur de la banque en votre faveur : ${op.title.length > 3 ? op.title : op.raw}`;
flux.dispatch({
type: Events.forward,
event: State.operations
});
}
}, Math.random() * 60 * 1000);
}
}
}
store.setupKresus = function(cb) {
backend.init().then(world => {
......@@ -392,9 +373,6 @@ store.setupKresus = function(cb) {
if (defaultAccountId)
assert(data.currentAccountId === defaultAccountId);
if (data.currentAccountId)
normalizeData(store.getAccount(data.currentAccountId));
has(world, 'alerts');
data.alerts = [];
for (let al of world.alerts) {
......
Supports Markdown
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